import { createRouter, createWebHashHistory } from 'vue-router'
import VehicleManagement from '../views/VehicleManagement.vue'
import FacilityManagement from '../views/FacilityManagement.vue'
import AdvertisingManagement from '../views/AdvertisingManagement.vue'
import StationManagement from '../views/StationManagement.vue'
import AccountManagement from '../views/AccountManagement.vue'
import FeedbackManagement from '../views/FeedbackManagement.vue'
import OperationRecord from '../views/OperationRecord.vue'

const routes = [
  {
    path: '/',
    name: 'vehicle',
    component: VehicleManagement
  },
  {
    path: '/facility',
    name: 'facility',
    component: FacilityManagement
  },
  {
    path: '/advertising',
    name: 'advertising',
    component: AdvertisingManagement
  },
  {
    path: '/station',
    name: 'station',
    component: StationManagement
  },
  {
    path: '/account',
    name: 'account',
    component: AccountManagement
  },
  {
    path: '/feedback',
    name: 'feedback',
    component: FeedbackManagement
  },
  {
    path: '/record',
    name: 'record',
    component: OperationRecord
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
